package com.jcw.kqxt.domain;

import java.util.Date;
import com.baomidou.mybatisplus.annotations.TableField;
import com.baomidou.mybatisplus.activerecord.Model;
import com.baomidou.mybatisplus.annotations.TableName;
import java.io.Serializable;

/**
 * <p>
 * 
 * </p>
 *
 * @author qinhui
 * @since 2022-02-25
 */
@TableName("t_record")
public class Record extends Model<Record> {

    private static final long serialVersionUID = 1L;

    private Integer id;
    /**
     * 用户id
     */
    @TableField("user_id")
    private Long userId;
    /**
     * 开始时间
     */
    @TableField("start_time")
    private Date startTime;
    /**
     * 结束时间
     */
    @TableField("end_time")
    private Date endTime;
    /**
     * 派遣部门id
     */
    @TableField("dept_id")
    private String deptId;
    /**
     * 部门名称
     */
    @TableField("dept_name")
    private String deptName;
    /**
     * 0出勤1派遣2公差3公休4事假5病假6旷工7早退8迟到
     */
    private Integer status;
    /**
     * 创建时间
     */
    private Date createtime;
    /**
     * 时长
     */
    @TableField("burning_time")
    private Long burningTime;


    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public Long getUserId() {
        return userId;
    }

    public void setUserId(Long userId) {
        this.userId = userId;
    }

    public Date getStartTime() {
        return startTime;
    }

    public void setStartTime(Date startTime) {
        this.startTime = startTime;
    }

    public Date getEndTime() {
        return endTime;
    }

    public void setEndTime(Date endTime) {
        this.endTime = endTime;
    }

    public String getDeptId() {
        return deptId;
    }

    public void setDeptId(String deptId) {
        this.deptId = deptId;
    }

    public String getDeptName() {
        return deptName;
    }

    public void setDeptName(String deptName) {
        this.deptName = deptName;
    }

    public Integer getStatus() {
        return status;
    }

    public void setStatus(Integer status) {
        this.status = status;
    }

    public Date getCreatetime() {
        return createtime;
    }

    public void setCreatetime(Date createtime) {
        this.createtime = createtime;
    }

    public Long getBurningTime() {
        return burningTime;
    }

    public void setBurningTime(Long burningTime) {
        this.burningTime = burningTime;
    }

    @Override
    protected Serializable pkVal() {
        return this.id;
    }

    @Override
    public String toString() {
        return "Record{" +
        ", id=" + id +
        ", userId=" + userId +
        ", startTime=" + startTime +
        ", endTime=" + endTime +
        ", deptId=" + deptId +
        ", deptName=" + deptName +
        ", status=" + status +
        ", createtime=" + createtime +
        ", burningTime=" + burningTime +
        "}";
    }
}
